package se.sics.kompics.tutorial.tutorial2.lazyProbabilisticBcast.messages;

import se.sics.kompics.address.Address;

/**
 * Event used to request a message via gossiping
 *
 */
public class RequestMessage extends PbMessage {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1267416277184099668L;
	
	private final Address requestedSource;
	private final Integer ttl;
	
	public RequestMessage(Address source, Integer counter, Address requestedSource, Integer ttl) {
		super(source, counter);
		this.requestedSource = requestedSource;
		this.ttl = ttl;
	}
	
	public Address getRequestedSource() {
		return requestedSource;
	}
	
	public Integer getTtl() {
		return ttl;
	}


}
